<html>
   <head>
      <title></title>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <script src="dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=5"></script>
      <script>
      var map = null;
            
      function GetMap()
      {
        //Instatiate the map control
	map = new VEMap('myMap');
	//Load the map into the page
	map.LoadMap();
        
      }   

	function AddGeoRSSLayer()
	{
		//Create a VEShapeSourceSpecification which includes a VEDataType, the URL of your GeoRSS file and the layer ID you want the data added to
 
		var myShapeSourceSpec = new VEShapeSourceSpecification(VEDataType.GeoRSS, 'http://earthquake.usgs.gov/eqcenter/catalogs/eqs1day-M2.5.xml', 1);
		//Add the GeoRSS to the map.
		map.ImportShapeLayerData(myShapeSourceSpec, onFeedLoad); 
	}

	function onFeedLoad(feed)
	{ 
   		alert('RSS or Collection loaded');
	}


      </script>
   </head>
   <body onload="GetMap();">
      <div id='myMap' style="position:relative; width:800px; height:600px;"></div>
 <INPUT TYPE=BUTTON OnClick="AddGeoRSSLayer();" VALUE="Load GeoRSS"> 
   </body>
</html>
